import React, {Component} from 'react';
import HellowWorld from '../../components/HellowWorld/HellowWorld'
import CommentList from '../../components/CommentList/CommentList'
import Nav from "../../components/Nav/Nav";

class Home extends Component {
    constructor(props) {
        super(props)
        this.state = {
            comments : [
                {id: 1, name: '小明', content: '沙发！！！'},
                {id: 2, name: '小红', content: '小明，居然是你'},
                {id: 3, name: '小刚', content: '小明，放学你别走！！！'},
            ]
        }
    }

    render() {
        return (
            <div className="Home">
                <Nav></Nav>
                <HellowWorld name={'小明'}></HellowWorld>
                <CommentList comments={this.state.comments}></CommentList>
            </div>
        );
    }
}

export default Home;
